from kyb_caps import driver
print(driver.get_window_size())

def swipe_to_right(driver):
    x1 = driver.get_window_size()['width'] * 0.3
    y1 = driver.get_window_size()['height'] * 0.5
    x2 = driver.get_window_size()['width'] * 0.7
    driver.swipe(x1, y1, x2, y1)

def swipe_to_left(driver):
    x1 = driver.get_window_size()['width'] * 0.3
    y1 = driver.get_window_size()['height'] * 0.5
    x2 = driver.get_window_size()['width'] * 0.7
    driver.swipe(x2, y1, x1, y1)

def swipe_to_up(driver):
    y1 = driver.get_window_size()['height'] * 0.3
    x1 = driver.get_window_size()['width'] * 0.5
    y2 = driver.get_window_size()['height'] * 0.7
    driver.swipe(x1, y2, x1, y1)


def swipe_to_down(driver):
    y1 = driver.get_window_size()['height'] * 0.3
    x1 = driver.get_window_size()['width'] * 0.5
    y2 = driver.get_window_size()['height'] * 0.7
    driver.swipe(x1, y1, x1, y2)


if __name__ == '__main__':
    pass
